@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./btn.scss";
@import "./demo.scss";

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px !important;
  color: #444;
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family:
    Helvetica Neue,
    Helvetica,
    PingFang SC,
    Hiragino Sans GB,
    Microsoft YaHei,
    Arial,
    sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans",
    "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.el-table-column--selection .cell {
  padding-left: 10px;
  padding-right: 10px !important;
}
// table-th 背景颜色修改
.el-table th.el-table__cell {
  background-color: #0922461c !important;
}

// table 边框颜色修改
$--table-border-color: #c0c0c0;
// table 字体颜色修改
$--table-text-color: #000000;
// table 隔行变色修改
$--table-striped-bg-color: #f4f4f4;

.el-table--border,
.el-table--group {
  border: 1px solid $--table-border-color !important;
}
.el-table td.el-table__cell,
.el-table th.el-table__cell.is-leaf {
  border-bottom: 1px solid $--table-border-color !important;
}
.el-table--border th.el-table__cell,
.el-table__fixed-right-patch {
  border-bottom: 1px solid $--table-border-color !important;
}
.el-table--border .el-table__cell,
.el-table__body-wrapper .el-table--border.is-scrolling-left ~ .el-table__fixed {
  border-right: 1px solid $--table-border-color !important;
}
.el-table__footer-wrapper td.el-table__cell {
  border-top: 1px solid $--table-border-color !important;
}
.el-table__fixed-footer-wrapper tbody td.el-table__cell {
  border-top: 1px solid $--table-border-color !important;
}
.el-table--border::after,
.el-table--group::after,
.el-table::before {
  background-color: #ffffff !important;
}
.el-table--medium .el-table__cell {
  padding: 4px 0 !important;
  .el-input__inner {
    color: $--table-text-color !important;
  }
}
// table 隔行变色
.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
  background-color: $--table-striped-bg-color !important;
}
// 合计行颜色修改
.el-table__header-wrapper tbody td.el-table__cell,
.el-table__footer-wrapper tbody td.el-table__cell {
  background-color: $--table-striped-bg-color !important;
  color: $--table-text-color !important;
}
// 标题颜色
.el-table .el-table__header-wrapper th,
.el-table .el-table__fixed-header-wrapper th {
  color: $--table-text-color !important;
}
// td颜色
.el-table__row {
  color: $--table-text-color !important;
}

// table内输入框居下为0
.el-table .el-form-item {
  margin-bottom: 0px !important;
}

.el-form-item {
  margin-bottom: 5px !important;
}

.el-form-item__error {
  display: none;
}

// 全局padding
.app-container {
  padding: 10px 10px !important;
}

// -----------缩小间距
.el-dialog__body {
  padding: 10px 20px !important;
}

.el-dialog__header {
  padding: 20px 20px 10px 20px !important;
}

// .el-tabs__item {
//   height: 30px !important;
//   line-height: 30px !important;
// }

/* 取消[type='number']的input的上下箭头 start*/
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
}

input::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* 取消[type='number']的input的上下箭头 end */
/* 表单label缩小间距 */
.el-form-item__label {
  padding: 0 6px 0 0;
}

.el-form--inline .el-form-item {
  margin-right: 6px;
}

/* 表单label缩小间距 end */
/* 缩小折行间距 */
.narrow-spacing {
  .el-form-item__label {
    line-height: 16px;
  }
}

/* 缩小折行间距 end */
/* table优化*/
.table {
  .el-table__fixed::before,
  .el-table__fixed-right::before {
    height: 0px !important;
  }
}

/* 省略 */
.ellipsis {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis; // 省略
}

.flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.bg-white {
  background: #ffffff;
}

//手型
.pointer {
  cursor: pointer;
}
// 修改table 单选样式
.radio-border .cell {
  display: flex;
  justify-content: center;
  padding-right: 0;
}
// table 省略长度
.el-tooltip__popper {
  max-width: 600px;
}
// 调整descriptions颜色
.el-descriptions .is-bordered .el-descriptions-item__cell {
  border: 1px solid #c7cad0;
}
.el-descriptions__body {
  color: #333 !important;
}
// 调整禁用的input文字颜色
.el-input.is-disabled .el-input__inner {
  color: #606266 !important;
}
